#ifndef _ROMEO_ROMEO_H
#define _ROMEO_ROMEO_H

#define	ROMEO_VENDORID		0x6809
#define	ROMEO_DEVICEID		0x2151
#define	ROMEO_DEVICEID2		0x8121		/* for Developer version */

enum {
	PCIERR_SUCCESS			= 0x00,
	PCIERR_INVALIDCLASS		= 0x83,
	PCIERR_DEVNOTFOUND		= 0x86
};

enum {
	ROMEO_DEVICE_VENDOR		= 0x00,
	ROMEO_STATUS_COMMAND	= 0x04,
	ROMEO_CLASS_REVISON		= 0x08,
	ROMEO_HEADTYPE			= 0x0c,
	ROMEO_BASEADDRESS0		= 0x10,
	ROMEO_BASEADDRESS1		= 0x14,
	ROMEO_SUB_DEVICE_VENDOR	= 0x2c,
	ROMEO_PCIINTERRUPT		= 0x3c
};

enum {
	ROMEO_YM2151ADDR		= 0x0000,
	ROMEO_YM2151DATA		= 0x0004,
	ROMEO_CMDQUEUE			= 0x0018,
	ROMEO_YM2151CTRL		= 0x001c,
	ROMEO_YMF288ADDR1		= 0x0100,
	ROMEO_YMF288DATA1		= 0x0104,
	ROMEO_YMF288ADDR2		= 0x0108,
	ROMEO_YMF288DATA2		= 0x010c,
	ROMEO_YMF288CTRL		= 0x011c
};


#define	PCIDEBUG_DLL	"pcidebug.dll"

#define	FN_PCIFINDDEV	"_pciFindPciDevice"
#define	FN_PCICFGREAD32	"_pciConfigReadLong"
#define	FN_PCIMEMWR8	"_MemWriteChar"
#define	FN_PCIMEMWR16	"_MemWriteShort"
#define	FN_PCIMEMWR32	"_MemWriteLong"
#define	FN_PCIMEMRD8	"_MemReadChar"
#define	FN_PCIMEMRD16	"_MemReadShort"
#define	FN_PCIMEMRD32	"_MemReadLong"

#endif /* _ROMEO_ROMEO_H */
